<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php e($html->charset()); ?>
<title><?php __($sitename); e(' &rsaquo; '); __($title_for_layout); ?></title>
<?php
  if (is_array($stylesheet)) {
      foreach ($stylesheet as $css) {
          e($html->css($css));
      }
  }
?>
</head>
<body>

<div>
  <div class="body">
    <div class="content fLeft" style="margin-left:10px;">
<?php if ($session->check('Message.flash') || $session->check('Message.auth')) { ?>
      <div id="messageBox" style="margin-bottom:5px;"><?php $session->flash().$session->flash('auth'); ?></div>
      <div class="clear"></div>
<?php } else if ($session->check('Message.email')) { ?>
      <div id="messageBox" style="margin-bottom:5px;"><?php $session->flash('email'); ?></div>
      <div class="clear"></div>
<?php } ?>
<?php e($content_for_layout); ?>
    </div>
    <div class="clear"></div>
  </div>
</div>
<?php
  if (is_array($javascripts)) {
      foreach ($javascripts as $js) {
          e($javascript->link($js));
      }
  }
?>

<script type="text/javascript"><?php e($scripts_for_layout); ?></script>
<div style="color:#ccc;">
  <?php e($cakeDebug); ?>
</div>
</body>

<script>
window.print();
window.close();
</script>
</html>